<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateLanCompletesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('lan_completes', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('order_id')->index();                        // 订单ID
            $table->string('language', 20);                              // 语言版本
            $table->boolean('progress')->default(0);                     // 进度
            $table->text('remark');                                      // 备注
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('lan_completes');
    }
}
